import indexService from "../services/home.js";

export default {
  getRealval: async (ctx, next) => {
    let res = await indexService.getRealval(ctx.request.body, ctx);
    console.log('========res=====',res);
    ctx.body = res;
  },
  loadYear: async (ctx, next) => {
    let res = await indexService.loadYear(ctx.request.body, ctx);
    console.log('========res=====',res);
    ctx.body = res;
  },
  loadDay: async (ctx, next) => {
    let res = await indexService.loadDay(ctx.request.body, ctx);
    console.log('========res=====',res);
    ctx.body = res;
  },
  loadHour: async (ctx, next) => {
    let res = await indexService.loadHour(ctx.request.body, ctx);
    console.log('========res=====',res);
    ctx.body = res;
  },
  loadMonth: async (ctx, next) => {
    let res = await indexService.loadMonth(ctx.request.body, ctx);
    console.log('========res=====',res);
    ctx.body = res;
  },
};
